import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import moment from 'moment'
import animated from 'animate.css'
import * as echarts from 'echarts';
import VueBarcode from "vue-barcode";
import Print from 'vue-print-nb'


// axios.defaults.baseURL = 'http://127.0.0.1:3000';
Vue.filter('dateFormat', function(dateStr, pattern = "YYYY-MM-DD HH:mm:ss") {
    return moment(dateStr).format(pattern);
})
Vue.prototype.$axios = axios;
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(animated);
Vue.use(Print);
Vue.component('barcode', VueBarcode);
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')